import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//分页条中文显示
import locale from 'element-plus/es/locale/lang/zh-cn'
//pinia存储token
import {createPinia} from 'pinia'
//pinia持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate)
createApp(App)
.use(router)
.use(ElementPlus,{locale})
.use(pinia)
.mount('#app')
